package com.realtyManage.springboot.Service.impl;

import com.realtyManage.springboot.Dao.CityCodeRepository;
import com.realtyManage.springboot.Model.Do.CityCode;
import com.realtyManage.springboot.Service.ICityCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * SpecialOfferHouseServiceImpl
 *
 * @Author 杭州素色网络科技有限公司
 * @Date 2019/5/15
 **/
@Service
@Transactional
public class CityCodeServiceImpl implements ICityCodeService {
    @Autowired
    private CityCodeRepository cityCodeRepository;

    @Override
    public CityCode infoCode(CityCode cc) {
        return cityCodeRepository.saveAndFlush(cc);
    }

}
